package com.xcity.game.recharge;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Excel;

/**
 * 充值表
 * @author yang.li
 *
 */
@Excel(value = "recharge.xlsx", sheet = 0)
public class RechargeTemplate extends Template {

	public static final byte TYPE_NORMAL = 0, TYPE_CARD = 1;
	
	/** 充值类型(0:普通,1:周卡、月卡、终身卡) */
	protected byte type;

	/** 名称 */
	protected String name;

	/** 描述 */
	protected String desc;

	/** 图片 */
	protected String icon;

	/** 货币类型 */
	protected String currency;

	/** 价格 */
	protected int price;

	/** 可获得钻石 */
	protected int stone;
	
	/** 首充是否双倍 */
	protected boolean doubleFirst;
	
	/** 是否可见(默认可见,需要特殊处理的自行设置[如:每日限购]) */
	protected boolean visible = true;

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getStone() {
		return stone;
	}

	public void setStone(int stone) {
		this.stone = stone;
	}

	public boolean isDoubleFirst() {
		return doubleFirst;
	}

	public void setDoubleFirst(boolean doubleFirst) {
		this.doubleFirst = doubleFirst;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	@Override
	public void validate() throws TemplateException {}
}
